import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      component: () => import('../views/AboutView.vue'),
    },
    //门店添加
    {
      path: '/ShopAdd',
      component: () => import('../views/Shop/ShopAdd.vue'),
    },
     //门店列表显示
    {
      path: '/ShopList',
      component: () => import('../views/Shop/ShopList.vue'),
    },
    // //门店修改
    {
      path: '/ShopUpdate',
      component: () => import('../views/Shop//ShopUpdate.vue'),
    },
    //会告添加
    {
      path: '/WiliteAdd',
      component: () => import('../views/Wilite/WiliteAdd.vue'),
    },
     //会告显示
    {
      path: '/WiliteList',
      component: () => import('../views/Wilite/WiliteList.vue'),
    },
     //会告修改
    {
      path: '/Wiliteupdate',
      component: () => import('../views/Wilite/Wiliteupdate.vue'),
    },
    //科室信息添加
    {
      path: '/DepartmentAdd',
      component: () => import('../views/Department/DepartmentAdd.vue'),
    },
     //科室信息显示列表
     {
      path: '/DepartmentList',
      component: () => import('../views/Department/DepartmentList.vue'),
    },
    //用药信息添加
    {
      path: '/MedicationAdd',
      component: () => import('../views/Medication/MedicationAdd.vue'),
    },
     //用药信息显示列表
     {
      path: '/MedicationList',
      component: () => import('../views/Medication/MedicationList.vue'),
    },
    //用药信息修改
    {
      path: '/MedicationUpdate',
      component: () => import('../views/Medication/MedicationUpdate.vue'),
    },
  ],
})

export default router
